﻿<%@ Page Language="C#" MasterPageFile="~/NetFTP.master" AutoEventWireup="true" CodeFile="UserAccount.aspx.cs" Inherits="UserAccount" Theme="Default" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table width="100%">
        <tr>
            <td align="center">
                <br /><br />
                <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="LOGIN_HG"></td>
                        <td class="LOGIN_H" style="width:800px;"></td>
                        <td class="LOGIN_HD"></td>
                    </tr>
                    <tr>
                        <td class="LOGIN_G" valign="bottom">
                            <table class="LOGIN_G" border="0" cellpadding="0" cellspacing="0">
                                <tr><td class="LOGIN_BG"></td></tr>
                            </table>
                        </td>
                        <td class="LOGIN_B">
                            <br /><div class="titregris">
                                <asp:Label ID="lblTitre" runat="server" Text="Liste des comptes FTP" 
                                    meta:resourcekey="lblTitre"></asp:Label>
                            </div>
                            <br />
                            <asp:GridView ID="gvAccount" runat="server" AutoGenerateColumns="False" 
                                meta:resourcekey="GridView1Resource1" onrowcommand="gvAccount_RowCommand">
                                <Columns>
                                    <asp:TemplateField HeaderText="Id" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lblId" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Hôte" >
                                        <ItemTemplate>
                                            <asp:Label ID="lblHostname" runat="server" Text='<%# Bind("Hostname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="User">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUsername" runat="server" Text='<%# Bind("Username") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Dossier">
                                        <ItemTemplate>
                                            <asp:Label ID="lblFolder" runat="server" Text='<%# Bind("Folder") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Port">
                                        <ItemTemplate>
                                            <asp:Label ID="lblPort" runat="server" Text='<%# Bind("Port") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource4">
                                        <ItemTemplate>
                                            <asp:Button 
                                                OnClientClick="javascript: return confirm('Etes-vous sûr de vouloir supprimer ce compte ?');" 
                                                ID="cmdSupprimer" runat="server" CommandName="Supprimer" 
                                                CommandArgument='<%# Bind("Id") %>' Causesvalidation="False" 
                                                Text="Supprimer" ToolTip="Supprimer" 
                                                meta:resourcekey="cmdSupprimerResource1" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField meta:resourcekey="TemplateFieldResource4">
                                        <ItemTemplate>
                                            <asp:Button 
                                                ID="cmdConnecter" runat="server" CommandName="Connection" 
                                                CommandArgument='<%# Bind("Id") %>' Causesvalidation="False" 
                                                Text="Connection" ToolTip="Connection" 
                                                meta:resourcekey="cmdConnecterResource1" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <br />
                            <asp:Button ID="cmdNew" runat="server" onclick="cmdNew_Click" Text="Nouveau" />
                            <br />
                            <br />
                            <br />
                        </td>
                        <td class="LOGIN_D" valign="bottom">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr><td class="LOGIN_BD"></td></tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>